package com.qf.vote2203.esvo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "vote_info",shards = 1,replicas = 1,createIndex = false)
public class VoteEsVo implements Serializable {

    @Id
    @Field(type = FieldType.Integer)
    private Integer id;
    @Field(type = FieldType.Keyword)
    private String phone;
    @Field(type = FieldType.Integer)
    private Integer voteNum;
    @Field(type = FieldType.Date)
    private Date updateTime;
    @Field(type = FieldType.Integer)
    private Integer candidateId;


}
